package com.ge.modules.base.service.impl;

import com.ge.modules.base.service.TbCityService;
import com.ge.modules.dao.TbCityDao;
import com.ge.modules.entity.TbCityEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbCityServiceImpl implements TbCityService {
    @Autowired
    private TbCityDao tbCityDao;

    @Override
    public TbCityEntity queryObject(Integer cityid) {
        return tbCityDao.queryObject(cityid);
    }

    @Override
    public List<TbCityEntity> queryList(Map<String, Object> map) {
        return tbCityDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbCityDao.queryTotal(map);
    }

    @Override
    public void save(TbCityEntity city) {
        tbCityDao.save(city);
    }

    @Override
    public void update(TbCityEntity city) {
        tbCityDao.update(city);
    }

    @Override
    public void delete(Integer cityid) {
        tbCityDao.delete(cityid);
    }

    @Override
    public void deleteBatch(Integer[] cityids) {
        tbCityDao.deleteBatch(cityids);
    }

    @Override
    public List<TbCityEntity> getList(int provinceid) {
        return tbCityDao.getList(provinceid);
    }

}
